#!/bin/bash
#

this_pid=$$

status='ps -ef | grep nginx | grep -v grep | grep -v $this_pid'

if [ "status" == 0 ];then
	echo "Nginx is running well"
else
	systemctl start nginx
	echo "Nginx is down, Start it..."
fi
